package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 制造执行MES-质量管理-来料检验
对象 mes_material_inspector
 * 
 * @author zhonghui
 * @date 2023-12-14
 */
@Data
public class MesMaterialInspectorVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    private String serialNumber;

    /** 领料id */
    @Excel(name = "领料id")
    private Long applyId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long materialId;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    private Long sampleQuantity;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long dosage;

    /** 已领数量 */
    @Excel(name = "已领数量")
    private Long receivedQuantity;

    /** 质检标准id */
    private Long inspectionId;

    /** 检验值 */
    @Excel(name = "检验值")
    private Long inspectionValue;

    /** 检验结果(0-不合格,1-合格) */
    @Excel(name = "检验结果(0-不合格,1-合格)")
    private Long result;

    /** 检验人id */
    @Excel(name = "检验人id")
    private Long checkUserId;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectorTime;
   /* b.odd_number,
    c.material_name,c.material_model,c.material_specifications,c.material_unit,
    d.check_item,d.up_limit,lower_limit*/
    private String odd_number;
    private String material_name;
    private String material_model;
    private String material_specifications;
    private String material_unit;
    private String check_item;
    private String up_limit;
    private String lower_limit;

}
